<template>
	<view class="internal-page">
		<view class="header">
			<text class="title">内务管理</text>
			<text class="subtitle">团队内部事务管理</text>
		</view>
		
		<view class="content">
			<view class="menu-grid">
				<view class="menu-item" @click="navigateTo('/pages/checkin/checkin')">
					<view class="menu-icon">📅</view>
					<text class="menu-text">打卡签到</text>
				</view>
				
				<view class="menu-item" @click="showComingSoon">
					<view class="menu-icon">📋</view>
					<text class="menu-text">会议记录</text>
				</view>
				
				<view class="menu-item" @click="showComingSoon">
					<view class="menu-icon">📊</view>
					<text class="menu-text">考勤统计</text>
				</view>
				
				<view class="menu-item" @click="showComingSoon">
					<view class="menu-icon">📝</view>
					<text class="menu-text">任务分配</text>
				</view>
				
				<view class="menu-item" @click="showComingSoon">
					<view class="menu-icon">💰</view>
					<text class="menu-text">财务记录</text>
				</view>
				
				<view class="menu-item" @click="showComingSoon">
					<view class="menu-icon">📚</view>
					<text class="menu-text">资料管理</text>
				</view>
			</view>
			
			<view class="recent-section">
				<text class="section-title">最近活动</text>
				<view class="activity-list">
					<view class="activity-item">
						<view class="activity-time">今天 14:30</view>
						<text class="activity-content">团队例会</text>
					</view>
					<view class="activity-item">
						<view class="activity-time">昨天 16:00</view>
						<text class="activity-content">项目评审</text>
					</view>
					<view class="activity-item">
						<view class="activity-time">3天前</view>
						<text class="activity-content">新人培训</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			
		}
	},
	methods: {
		navigateTo(url) {
			uni.navigateTo({
				url: url
			})
		},
		showComingSoon() {
			uni.showToast({
				title: '功能开发中',
				icon: 'none'
			})
		}
	}
}
</script>

<style scoped>
.internal-page {
	padding: 20rpx;
	background-color: #f9fafb;
	min-height: 100vh;
}

.header {
	text-align: center;
	padding: 40rpx 0;
	background: linear-gradient(135deg, #10b981, #059669);
	border-radius: 20rpx;
	margin-bottom: 30rpx;
}

.title {
	display: block;
	font-size: 36rpx;
	font-weight: bold;
	color: white;
	margin-bottom: 10rpx;
}

.subtitle {
	display: block;
	font-size: 24rpx;
	color: rgba(255, 255, 255, 0.8);
}

.content {
	background: white;
	border-radius: 20rpx;
	padding: 30rpx;
}

.menu-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20rpx;
	margin-bottom: 40rpx;
}

.menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 30rpx 20rpx;
	background: #f8fafc;
	border-radius: 15rpx;
	border: 2rpx solid #e2e8f0;
	transition: all 0.3s ease;
}

.menu-item:active {
	background: #e2e8f0;
	transform: scale(0.95);
}

.menu-icon {
	font-size: 48rpx;
	margin-bottom: 15rpx;
}

.menu-text {
	font-size: 24rpx;
	color: #374151;
	text-align: center;
}

.recent-section {
	margin-top: 20rpx;
}

.section-title {
	display: block;
	font-size: 32rpx;
	font-weight: bold;
	color: #1f2937;
	margin-bottom: 20rpx;
}

.activity-list {
	background: #f8fafc;
	border-radius: 15rpx;
	padding: 20rpx;
}

.activity-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20rpx 0;
	border-bottom: 1rpx solid #e2e8f0;
}

.activity-item:last-child {
	border-bottom: none;
}

.activity-time {
	font-size: 24rpx;
	color: #9ca3af;
}

.activity-content {
	font-size: 28rpx;
	color: #374151;
}
</style>
